#获取登录成功后返回令牌，组织请求头
from IHRM01.api.py_ihrmLoginApi import IhrmLoginApi

def get_header():
    req_data = {"mobile": "13800000002", "password": "hm#qd@23!", "isAgree": True}
    resp=IhrmLoginApi.login(json=req_data)
    headers = {"Authorization":"Bearer "+resp.json().get("data")}

    return headers

if __name__ == '__main__':
    get_header()
